package tw.com.softleader.spring.dao;

import javax.annotation.PostConstruct;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;

public class InitDao implements InitializingBean {

	private Logger log = LoggerFactory.getLogger(this.getClass()); 
	
	@Override
	public void afterPropertiesSet() throws Exception {
		log.debug("Hello, This is InitDao.afterPropertiesSet()");
		
	}
	
	public void sayHelloToGary() {
		log.debug("Hello Gary");
	}

	@PostConstruct
	public void needToRun() {
		log.debug("Runnning");
	}
	
}
